package org.mte.swift.builder.model.template;

public class Template {
	
	public static final String JAVA_TEMPLATE_TYPE = "java";
	public static final String WEB_TEMPLATE_TYPE = "web";

	private String path = null;
	
	private String content = null;
	
	private String type = null;
	
	public Template() {
		
	}

	public Template (String path, String content, String type) {
		this.path = path;
		this.content = content;
		this.type = type;
	}
	
	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	public boolean isWeb() {
		return type != null && type.equals(WEB_TEMPLATE_TYPE);
	}

	public boolean isJava() {
		return type != null && type.equals(JAVA_TEMPLATE_TYPE);
	}
}
